

<div>
  <p-table #dtl [columns]="cols" [value]="basicInformation" [paginator]="true" [rows]="10">
    <ng-template pTemplate="caption">
      可休假期情况
      <div style="text-align: right">
        <i class="fa fa-search" style="margin: 20px 4px 0 0"></i>
      </div>
    </ng-template>
    <ng-template pTemplate="header" let-columns>
      <tr>
        <th *ngFor="let col of columns" [pSortableColumn]="col.field">
          {{col.header}}
        </th>
      </tr>
    </ng-template>
    <ng-template pTemplate="body" let-rowData let-columns="columns">
      <tr [pSelectableRow]="rowData">
        <td *ngFor="let col of columns">
          {{rowData[col.field]}}
        </td>
      </tr>
    </ng-template>
  </p-table>
</div>
